﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KOPLibrary.SharePointManagement
{
    public class WorkflowDataList:List<WorkflowData>
    {                
        public WorkflowData this[Guid id]
        {
            get
            {
                foreach (WorkflowData item in this)
                {
                    if (item.WorkflowId == id) return item;
                }
                return null;
            }
        }
        public WorkflowData this[string name]
        {
            get
            {
                foreach (WorkflowData item in this)
                {
                    if (item.WorkflowName == name) return item;
                }
                return null;
            }
        }
    }
}
